#99乘法表
row=1
while row<=9:
  col=1
  while col<=row:
    print ("%d*%d=%d"%(col,row,col*row),end="\t")
    col+=1
  print ("\n")
  row+=1


#nn乘法表
n= int(input("请输入阶次:"))
row=1
while row<=n:
  col=1
  while col<=row:
    print ("%d*%d=%d"%(col,row,col*row),end=" ")
    col+=1
  print ("\n")
  row+=1
